package it.traveldreamClient.beans;

import java.util.List;

import it.traveldream.exception.UtenteNonTrovatoException;
import it.traveldreamClient.beans.dto.ComponenteDTO;
import it.traveldreamClient.beans.dto.UserDTO;

import javax.ejb.Local;

@Local
public interface UserMgr {
	
	public void save(UserDTO user) throws Exception;
	
	public UserDTO findUtente(String email) throws UtenteNonTrovatoException;
	
	public void saveEmp(UserDTO impiegato) throws Exception;;
	
	public void unregister();
	
	public UserDTO getUserDTO();
	
	public String getUrlRole();
	
	public String getMailActualUser();

	public void acquista(String idProdotto) ;

	public void updateAcquisti(UserDTO dto);
	
	public void regala(UserDTO user, List<ComponenteDTO> regali);
	
}
